package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.StorageInventoryProduct;
import com.wing.cabinet.model.request.StorageInventoryProductForm;
import com.wing.cabinet.model.response.StorageInventoryProductVO;

import java.util.List;
import java.util.Map;

/**
 * 暂存柜产品库存-Service
 *
 * @author
 */
public interface StorageInventoryProductService extends IService<StorageInventoryProduct> {

    /**
     * 添加
     *
     * @param storageInventoryProductForm
     * @return
     */
    int add(StorageInventoryProductForm storageInventoryProductForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<StorageInventoryProductVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<StorageInventoryProductVO> pageList4app(Page page, Map<String, Object> params);
    Page<StorageInventoryProductVO> pageList(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    StorageInventoryProductVO get4appById(Long id);

    /**
     * 导出库存列表（按产品）数据
     * @return
     */

    List<StorageInventoryProductVO> ecxportList(Map<String, Object> params);
}
